package com.bdqn.ch01.service;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

import static org.junit.Assert.*;

@RunWith(SpringRunner.class)
@SpringBootTest
public class HelloServiceTester {

    @Resource
    private HelloService helloService;

    @Test
    public void sayHello() {
        String msg=helloService.sayHello();
        System.out.println("msg:"+msg);
    }
}